<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<c:if test="${update==true }">
   <div class="ts" style='height:40px;padding:1px;width:90%;'>
	  <div style='margin-top:15px;'><p align="center" style='color:#990000;'>修改成功</p></div>
	</div>
</c:if>
<c:if test="${success==false }">
   <div class="ts" style='height:40px;padding:1px;width:90%;'>
	  <div style='margin-top:15px;'><p align="center" style='color:'>添加失败</p></div>
	</div>
</c:if>

<div>
	<table style="width: 100%" class="table table-hover article-table">
	          <c:choose>
					<c:when test="${empty xys }">
						<tr>
							<td colspan="3" style="color: red" align="center">暂时没有专业信息</a></td>
						</tr>
					</c:when>
					<c:when test="${not empty xys}">
					    <tr>
					       <td style='' class='content_td1'>名字</td>
					      <td  class=''>届数</td>
					      <td  class=''>级别</td>
					      <td  class=''>类型</td>
					       <td  class=''>操作</td>
					    </tr>
						<c:forEach items="${xys }" var="news" varStatus="status">
							<tr class='discuss'>
								<td class=" " align="center">
								    <div class=''><a
									title='${news.xyJs}'>
									<span >${news.xyName}</span>
									
									</a></div>
								</td> 
								<td class=" " align="center">
								    <div class=''><a
									><span >${news.xyJs}</span>
									
									</a></div>
								</td> 
								<td class=" ">
								    <div class=''><a
									title='${news.xyJb.xyjbName}'>
									<span >${news.xyJb.xyjbName}</span>
									
									</a></div>
								</td> 
								<td class=" ">
								    <div class=''><a
									title='${news.xytId.xytName}'>
									<span >${news.xytId.xytName}</span>
									</a></div>
								</td> 
								<td class="content_td3"><a href='#'><button te='${news.xyId }' url='delxy' backurl='xxydmagui_1/1' style='width:80px;' class='del btn btn-danger'>删除</button></a>
								  |	<a href='<%=basePath %>backend/updatexy/${news.xyId }' style='width:80px;' class="update btn btn-warning"  >
                                                                                          修改
                                   </a>
                                   <!-- Modal -->
                           
								</td>
						</c:forEach>
						
					</c:when>
				</c:choose>
				</table>
				<div id="" class="span12" style='margin-left:40%;margin-top:10px;'>
		   
	   <p> <a href='<%=basePath%>backend/xxydmagui_1/1 '>【首	页】</a>
	   <a href='<%=basePath%>backend/xxydmagui_${pagenow-1 }/1 ' id="first">【上一页】</a>
	   <a  class="pagenow">
	   <strong style='color:red;font-size:16px;'>${pagenow}</strong></a>...
	   <a href='<%=basePath%>backend/xxydmagui_${pagecount }/1'>${pagecount }</a>
	   <a href='<%=basePath%>backend/xxydmagui_${pagenow+1 }/1 ' id="next">【下一页】</a>
	   <a href='<%=basePath%>backend/xxydmagui_${pagecount }/1 '>【末	页】</a>
	   </p>
	   <script type="text/javascript">
	   $(function(){
		   var page = ${pagenow};
		   
		   var pagecount = ${pagecount};
		 
		   if(parseFloat(page)+1 >parseFloat(pagecount))
			   {
			       $("#next").hide();
			   }
		   if(parseFloat(page)-1 <1)
			   {
			     $("#first").hide();
			   }else{
				   $("#first").show();
			   };
			  
	   });
	</script>
	</div>
</div>